// import { useSelector } from "react-redux";
import { Link } from "react-router-dom";
import { store } from "../../store/store";
function ReduxDemo(){

    const {token}= store.getState();
 
    

//    let token=  useSelector((state:any)=>state.token);
  

    return (
        <div>
            <div>ReduxDemo2</div>
            <div>
                {token}
            </div>
            <Link to="/redux">返回</Link>
        </div>
    )

}
export default ReduxDemo;